package com.zhaorui.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName activity_prize
 */
@TableName(value ="activity_prize")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActivityPrize implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 奖品名称
     */
    private String prizeName;

    /**
     * 图片
     */
    private String prizePic;

    /**
     * 简介：说明
     */
    private String prizeExplain;

    /**
     * 价格1
     */
    private BigDecimal prizePrice;

    /**
     * 价格2
     */
    private BigDecimal prizePrice2;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updattime;

    /**
     * 逻辑删除：0：正常；1：停用
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer del;

    /**
     * 备用1
     */
    private String rem1;

    /**
     * 备用2
     */
    private String rem2;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}